﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class yuangong
    {
        public int gonghao { get; set; }
        public string xingming { get; set; }
        public string bumeng { get; set; }
        public  yuangong() 
        {
        
        }
        public  yuangong(int gonghao, string xingming, string bumeng)
        {
            this.gonghao = gonghao;
            this.xingming = xingming;
            this.bumeng = bumeng;
        }
        public void EoL()
        {
            Console.WriteLine("工号：{0},姓名：{1},部门信息：{2}", this.gonghao, this.xingming, this.bumeng);
        }

    }
}
